package 异常.day1.demo4;

public class Test {
    public static void main(String[] args)throws Exception {
        div(4,0);
    }

    static int div(int n1,int n2)throws NullPointerException,RuntimeException,Exception{
        if(n2==0){
            Exception e=new Exception();
            throw e;
        }
        return n1/n2;
    }
}
